package com.yuntai.pms.model.entity;

import java.io.Serializable;
import com.alibaba.fastjson.JSON;

public class AipConfigRecord implements Serializable{
	
	private static final long serialVersionUID = 1374672876458465721L;

	/** 自增主键 */
	private Long id;
	
	/** 修改前配置ID，主键 */
	private String oldCid;
	
	/** 修改后配置ID，主键 */
	private String newCid;
	
	/** 项目名，对应openapi_config表中修改前的project_name */
	private String oldProjectName;
	
	/** 项目名，对应openapi_config表中修改后的project_name */
	private String newProjectName;
	
	/** 修改前属性分组名，如：jdbc，dubbo，redis，common等等 */
	private String oldGroupName;
	
	/** 修改后属性分组名，如：jdbc，dubbo，redis，common等等 */
	private String newGroupName;
	
	/** 修改前properties中的key */
	private String oldPkey;
	
	/** 修改后properties中的key */
	private String newPkey;
	
	/** properties中修改前的value */
	private String oldPvalue;
	
	/** properties中修改后的value */
	private String newPvalue;
	
	/** properties修改前描述 */
	private String oldDescription;
	
	/** properties修改后描述 */
	private String newDescription;
	
	/** 修改过之后配置中心是否已读 0未读 1已读 */
	private Integer motified;

	/** 删除为1，新增为2，更新为3 */
	private Integer type;
	
	/** 创建时间 */
	private String createTime;
	
	public String getOldDescription() {
		return oldDescription;
	}

	public void setOldDescription(String oldDescription) {
		this.oldDescription = oldDescription;
	}

	public String getNewDescription() {
		return newDescription;
	}

	public void setNewDescription(String newDescription) {
		this.newDescription = newDescription;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOldCid() {
		return oldCid;
	}

	public void setOldCid(String oldCid) {
		this.oldCid = oldCid;
	}

	public String getNewCid() {
		return newCid;
	}

	public void setNewCid(String newCid) {
		this.newCid = newCid;
	}

	public String getOldProjectName() {
		return oldProjectName;
	}

	public void setOldProjectName(String oldProjectName) {
		this.oldProjectName = oldProjectName;
	}

	public String getNewProjectName() {
		return newProjectName;
	}

	public void setNewProjectName(String newProjectName) {
		this.newProjectName = newProjectName;
	}

	public String getOldPkey() {
		return oldPkey;
	}

	public void setOldPkey(String oldPkey) {
		this.oldPkey = oldPkey;
	}

	public String getNewPkey() {
		return newPkey;
	}

	public void setNewPkey(String newPkey) {
		this.newPkey = newPkey;
	}

	public String getOldPvalue() {
		return oldPvalue;
	}

	public void setOldPvalue(String oldPvalue) {
		this.oldPvalue = oldPvalue;
	}

	public String getNewPvalue() {
		return newPvalue;
	}

	public void setNewPvalue(String newPvalue) {
		this.newPvalue = newPvalue;
	}

	public Integer getMotified() {
		return motified;
	}

	public void setMotified(Integer motified) {
		this.motified = motified;
	}

	/**
	 * 1删除，2新增，3更新
	 * @return
	 */
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getOldGroupName() {
		return oldGroupName;
	}

	public void setOldGroupName(String oldGroupName) {
		this.oldGroupName = oldGroupName;
	}

	public String getNewGroupName() {
		return newGroupName;
	}

	public void setNewGroupName(String newGroupName) {
		this.newGroupName = newGroupName;
	}
	
	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}
	
}
